package lab02.test25;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        int a;
        int b;
        Scanner scanner=new Scanner(System.in);
        System.out.println("请输入两个数：");

        try {
            a=scanner.nextInt();
            b=scanner.nextInt();
            System.out.println("计算结果为："+a/b);

        }catch (ArithmeticException e){
            System.out.println("除数为零！！！");

        }finally {

        }
    }
}
